package com.example.demo.service;

import com.example.demo.dao.UserDao2;
import com.example.demo.pojo.User2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl2 implements UserDao2 {
    @Autowired
    UserDao2 userDao2;

    @Override
    public boolean addUser2(User2 user) {
        return userDao2.addUser2(user);
    }

    @Override
    public List<User2> queryUserList2() {
        return userDao2.queryUserList2();
    }
}
